<%@page import="com.solution.model.UserInfo"%>
<%@page import="com.solution.constant.LoginConstants"%>
<%
UserInfo userInfo = (UserInfo)session.getAttribute(LoginConstants.SESSION_USER_INFO);
%>
<table width="900px" border="0" align="center" cellpadding="0" cellspacing="0" class="maintable">
  <tr>
    <td colspan=4>
	<table width="100%" height="90px" border="0" valign="center" align="center" cellpadding="0" cellspacing="0" background="/images/header.gif" style="background-repeat-x: font-size: 14px; font-family: Verdana, Geneva, sans-serif; font-size: 14; color: #CCC; font-weight: bold;">
  <tr>
	<td valign="top" align="left" class="topitem1">
		Welcome <%=userInfo.getFirstName()%>
	</td>
    <td valign="top" align="right" class="topitem">
    <div  style="height:30px;"> <a  href="/">Home</a> | <a href="/changePasswordInit.do?changemode=change" >Change Password </a> | <a href="/logout.do" >Logout </a>  </div>
    <div >
      <div align="right"><img src="/images/MSLOGO.gif" /></div>
    </div>  
    <div style="height:30px;">
    <%String tab = (String)request.getAttribute("tab"); %>
    <table width="70%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr height="30px">
  <%if("QUESTION".equalsIgnoreCase(tab)) {%>
	    <td background="/images/left_corner_inactive.gif" width="7px"></td>
	    <td class="inactiveTab"><a href="/question.do"> Question </a></td>
	    <td background="/images/right_corner_inactive.gif" width="8px"></td>
	    <td width="1px"></td>
    <%} else{ %>
    	<td  width="7px"></td>
	    <td class="activeTab"><a href="/question.do"> Question </a></td>
	    <td  width="8px"></td>
	    <td width="1px"></td>
    <%} %>
     <%if("EXAM".equalsIgnoreCase(tab)) {%>
	    <td background="/images/left_corner_inactive.gif" width="7px"></td>
	    <td class="inactiveTab"><a href="/exam.do"> Exam </a></td>
	    <td background="/images/right_corner_inactive.gif" width="8px"></td>
	    <td width="1px"></td>
    <%} else{ %>
    	<td ></td>
	    <td class="activeTab"><a href="/exam.do"> Exam </a></td>
	    <td ></td>
	    <td width="1px"></td>
    <%} %>
    <%if("USER".equalsIgnoreCase(tab)) {%>
     <td background="/images/left_corner_inactive.gif" width="8px"></td>
    <td class="inactiveTab"><a href="/user.do"> User </a></td>
    <td background="/images/right_corner_inactive.gif" width="8px"></td>
    <td width="1px"></td>
    <%} else{ %>
    	<td " width="7px"></td>
	    <td class="activeTab"><a href="/user.do"> User </a></td>
	    <td  width="8px"></td>
	    <td width="1px"></td>
    <%} %>
	<%if("REPORT".equalsIgnoreCase(tab)) {%>
     <td background="/images/left_corner_inactive.gif" width="8px"></td>
    <td class="inactiveTab"><a href="/examwiseReport.do"> Report </a></td>
    <td background="/images/right_corner_inactive.gif" width="8px"></td>
    <td width="1px"></td>
    <%} else{ %>
    	<td width="7px"></td>
	    <td class="activeTab"><a href="/examwiseReport.do"> Report </a></td>
	    <td width="8px"></td>
	    <td width="1px"></td>
    <%} %>
    <%if("MISC".equalsIgnoreCase(tab)) {%>
     <td background="/images/left_corner_inactive.gif" width="8px"></td>
    <td class="inactiveTab"><a href="/createCategoryScreen.do"> Misc </a></td>
    <td background="/images/right_corner_inactive.gif" width="8px"></td>
    <td width="1px"></td>
    <%} else{ %>
    	<td width="7px"></td>
	    <td class="activeTab"><a href="/createCategoryScreen.do">  Misc  </a></td>
	    <td width="8px"></td>
	    <td width="1px"></td>
    <%} %>
   <td ></td>
    <td > </td>
    <td >&nbsp;</td>
    <td width="1px"></td>
     <td ></td>
    <td > </td>
    <td >&nbsp;</td>
    
  </tr>
</table>

    </div>  	
	</td>
	</tr>
	</table>
	</td>    
  </tr>   
 
  
  